package com.gw.business.system.menu.model;

import java.util.List;

import com.gw.platform.model.BaseModel;

/**
 *  类功能:系统菜单模型
 * 
 * <p>创建者:关博</p>
 * 
 * <p>创建时间:2014-06-23</p>
 */
public class SystemMenuModel implements BaseModel,TreeModel{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 5861380629205258945L;
	
	//菜单id
	private Integer id;
	//父节点
	private int parentId;
	//菜单文本
	private String text;
	//菜单访问地址
	private String url;
	//一级菜单标识 0:一级菜单 非0：非一级菜单
	private String top;
	//子菜单
	private List<TreeModel> item;
	
	private boolean select;
	public void setParentId(int parentId) {
		this.parentId = parentId;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public List<TreeModel> getItem() {
		return item;
	}

	public int getParentId() {
		return parentId;
	}

	public String getText() {
		return text;
	}

	public void setItem(List<TreeModel> item) {
		this.item = item;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getTop() {
		return top;
	}

	public void setTop(String top) {
		this.top = top;
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = (Integer) id;
	}

	public boolean isSelect() {
		return select;
	}

	public void setSelect(boolean select) {
		this.select = select;
	}
}
